﻿using System;

namespace Asteroids.Game
{
    public class Missile : Projectile {
        public Missile(Coordinate loc, double direction) : base(loc, direction, 20)
        {
            Life = 30;

            SketchMissle();

            Radius = 6;
        }
		
        private void SketchMissle()
        {
            VertexData.Add(new PolarCoordinate(0.0f, 3.0f));
            VertexData.Add(new PolarCoordinate(Math.PI * 1 / 6, 2f));
            VertexData.Add(new PolarCoordinate(Math.PI * 5 / 6, 2f));
            VertexData.Add(new PolarCoordinate(Math.PI * 7 / 6, 2f));
            VertexData.Add(new PolarCoordinate(Math.PI * 11 / 6, 2f)); 
        }
    }
}
